from django.urls import path, include
from .views import *
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register("role", RoleViewSet)
router.register("role/<int:pk>/", RoleViewSet)

urlpatterns = [
    path("code/", SendCodeView.as_view()),
    path("login/", LoginView.as_view()),
    path("user/", UserView.as_view()),
    path("menu/", ControlMenuView.as_view()),
    path("", include(router.urls))
]
